package com.xz.danhuaapi.service.inner;

import com.xz.danhuaapi.service.UserInterfaceInfoService;
import com.xz.danhuaapicommon.model.entity.UserInterfaceInfo;
import com.xz.danhuaapicommon.service.InnerUserInterfaceInfoService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @author xuzhou
 * @version 1.0
 * @createTime 2024-08-01
 * @description
 */
@DubboService
public class InnerUserInterfaceInfoServiceImpl implements InnerUserInterfaceInfoService {

    @Resource
    private UserInterfaceInfoService userInterfaceInfoService;

    @Override
    public boolean invokeCount(long interfaceInfoId, long userId) {
        return userInterfaceInfoService.invokeCount(interfaceInfoId, userId);
    }

    @Override
    public UserInterfaceInfo getInvokeUserInterfaceInfo(long interfaceInfoId, long userId) {
        return userInterfaceInfoService.getInvokeUserInterfaceInfo(interfaceInfoId, userId);
    }
}
